﻿using System;

namespace Hopscotch.Common.Helpers
{
	public static class DateTimeHelper
	{
		public static DateTime AddWeekDays(DateTime dateTime, int numberOfWeekDays)
		{
			DateTime dt = dateTime.AddDays(numberOfWeekDays);
			while (dt.DayOfWeek == DayOfWeek.Saturday ||
				dt.DayOfWeek == DayOfWeek.Sunday)
			{
				dt = dt.AddDays(1);
			}

			return dt;
		}
	}
}
